using System;
using System.Collections.Generic;
using System.Text;
using LngT.Interfaces;

namespace LngT.Core
    {
    class ItemWrapper
        {
        private IItem _item;

        public IItem Item
            {
            get
                {
                return _item;
                }
            set
                {
                _item = value;
                }
            }
        private double _rank;

        public double Rank
            {
            get
                {
                return _rank;
                }
            set
                {
                _rank = value;
                }
            }
        private int _rankCount = 0;

        public int RankCount
            {
            get
                {
                return _rankCount;
                }
            set
                {
                _rankCount = value;
                }
            }

        public double GetTotalRank()
            {
            if( _rankCount > 0 )
                return _rank / _rankCount;
            else
                return 0;
            }
        }
    }
